package forcollege.xly.com.xian.net;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

/**
 * Created by xuleyuan on 2018/8/10
 */

public interface RetrofitApi {

    String LOGIN = "users/login/";//罗列出接口地址

    @POST
    Observable<String> post(@Url String url, @Body Map<String, Object> body);//Post方法

    @GET
    Observable<String> get(@Url String url, @QueryMap Map<String, Object> map);//Get方法

}
